﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Icoders.MarketTracker.Web.Lib.Model
{
   public class PurchaseModel
    {
       public PurchaseModel()
       {
           Items = new List<PurchaseItemModel>();
       }
       public int ClientId { set; get; }
       public string ClientName { set; get; }
       public int POPId { set; get; }
       public string POPName { set; get; }
       public List<PurchaseItemModel> Items { get; set; }
    }
   public class PurchaseItemModel
   {
       public int Id { set; get; }
       public int ProductId { set; get; }
       [Display(Name=" Product name")]
       public string ProductName { set; get; }
       [DisplayFormat(DataFormatString = "{0:F0}", ApplyFormatInEditMode = true)]
       public decimal Quantity { set; get; }
       public decimal UnitPrice { set; get; }
        [Display(Name = "None sale reason")]
       public int ReasonId { set; get; }
       public bool IsPending { set; get; }
       public bool IsSale { set; get; }
   }
}
